package com.woniuxy.lab.woniu_lab.exception;

public enum WebExceptionCode {

    USER_IS_NOT_EXISTS(1001, "用户不存在"),
    USER_IS_DISABLED(1002, "用户状态异常"),
    PHONE_IS_EXISTS(1003,"手机号已经存在"),
    USER_BALANCE_IS_ENOUGH(1005, "余额不足，请充值"),
    CODE_HAS_EXPIRE(1006, "验证码已过期"),
    CODE_NOT_EXISTS(1007, "验证码不存在"),
    CODE_IS_INCORRECT(1008, "验证码不正确"),
    PWD_IS_INCORRECT(1009, "账号与密码不匹配"),
    USER_IS_NOT_AVAILABLE(1010, "用户状态不正确"),
    FREQUENT_LOGIN(1011, "登录失败次数过多，请稍后再试"),
    USER_NOT_PAY_RANGE(1012, "用户已购买靶场，请勿重复购买"),
    PASSWORD_CONSISTENCY(1013, "请输入与旧密码不一致的新密码"),

    ACCOUNT_NOT_EXISTS(2001, "账号不存在"),

    RANGE_NOT_EXISTS(3001, "靶场不存在"),
    LEVEL_NOT_EXISTS(3002, "不存在此难度"),
    TYPE_NOT_EXISTS(3003, "不存在此分类"),
    LEVEL_NOT_RIGHT(3004, "请输入正确的难度"),
    TYPE_NOT_RIGHT(3005, "请输入正确的分类"),
    RANGE_IS_NOT_AVAILABLE(3006, "靶场不可用"),
    RANGE_IS_NOT_FILE_TYPE(3007, "靶场表示文件类型"),
    RANGE_ID_NOT_EXISTS(3008, "靶场不存在"),
    RANGE_TYPE_INCORRECT(3009, "您选择的是文件型靶场 无法以环境形式启动"),
    RANGE_TYPE_IS_NOT_EXISTS(3010, "靶场类型不存在 请联系管理员"),

    DOCKER_IS_RUNNING(5001,"您当前还存在运行中的实验，无法再次开启"),
    DOCKER_NOT_PAY(5002,"当前镜像你没有购买无法启动,升级为本网站的VIP所有的靶场免费实验"),
    YOU_ALREADY_COLLECT_THIS_RANGE(5003,"你已经收藏了该实验"),
    CONTAINER_NOTHINGNESS(5004,"你当前没有启动容器,无需释放"),
    DOCKER_START_FILE(5005,"靶场启动失败,请联系管理员"),
    DOCKER_NOT_RUNNING(5006,"您没有启动的镜像无法延时"),
    DOCKER_IS_NOT_EXISTS(5007,"要启动的镜像不存在 请联系管理员"),
    DOCKER_START_FAILED(5008, "实验启动失败 因为端口放开失败 请联系管理员"),
    DOCKER_RELEASE_FAIL(5009, "有多个正在运行的实验"),
    FILE_NOT_NEED_DELAY(5010, "该类型实验无需延时"),
    DO_NOT_REPEAT_SUBMISSION_FLAG(5011, "请勿重复提交Flag"),



    EXPER_NOT_EXIST(6001,"当前实验不存在"),
    EXPER_IS_NOT_RUNNING(6002,"您当前未存在进行中的实验，无法提交Flag"),
    EXPER_IS_NOT_LIVE(6003,"您只能提交自己开启的实验的Flag"),
    FLAG_IS_NOT_LIVE(6004,"该实验不存在Flag"),

    PORT_NOT_EXISTS(7001,"端口记录不存在"),
    TOKEN_IS_NULL(7002,"token不存在"),
    ;
    Integer code;
    String message;

    WebExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
